package com.lhf.fvscommon.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;

/**
 * <p></p>
 *
 * @author lhf
 * @since 2020/11/14 15:49
 */
@ApiModel("分页请求实体")
public class Page {

    private static final int PAGENUM=1;
    private static final int PAGESIZE=10;

    @ApiParam(defaultValue = "1")
    private int pageNum = PAGENUM;
    @ApiParam(defaultValue = "10")
    private int pageSize = PAGESIZE;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "Page{" +
                "pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                '}';
    }
}
